package controllers

import dao.{AnnoDao, BasicDao}
import implicits.Implicits._
import play.api.cache.AsyncCacheApi
import play.api.libs.json.Json
import play.api.mvc._
import tool.{FormTool, Tool}
import utils.Utils

import java.io.File
import javax.inject.Inject


/**
 * Created by yz on 16/9/2021
 */
class CultivarsController @Inject()(cc: ControllerComponents, cache: AsyncCacheApi)(
  implicit val basicDao: BasicDao,
  implicit val annoDao: AnnoDao,
) extends AbstractController(cc) {

  def toIndex = Action { implicit request =>
    Ok(views.html.cultivars.index())
  }

  def variety2013 = Action { implicit request =>
    Ok(views.html.cultivars.variety2013())
  }

  def phylogenetic = Action { implicit request =>
    Ok(views.html.cultivars.phylogenetic())
  }

}
